<?php defined('SYSPATH') OR die('No direct access allowed.');
/**
 * @author petra.barus
 */
class Comparator {

    public static function compare_string($string1, $string2)
    {
        return true;
    }

    public static function compare_file($filepath1, $filepath2, &$cmpoutput = NULL)
    {
        $exec = "cmp --quiet $filepath1 $filepath2";
        //$comparelastline = exec($exec." 2>&1", $cmpoutput, $retval);
        return ($retval == 0);
    }
}